
package com.mt.api.modules.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author plover
 * @description /
 * @date 2020-07-06
 **/
@Data
public class AppProductAddBo implements Serializable {

    private Integer id;

    @ApiModelProperty(value = "采购单备注")
    private String remark;

    private List<AppProductAddBo.ProductDetail> productDetails;

    @Data
    public static class ProductDetail {

        @ApiModelProperty(value = "款id")
        private Integer cargoId;

        @ApiModelProperty(value = "款号")
        private String cargoNo;

        @ApiModelProperty(value = "数量")
        private List<AppProductAddBo.SimpleSkuInfo> skuInfoList;

    }

    @Data
    public static class SimpleSkuInfo {

        @ApiModelProperty(value = "id")
        private Integer id;

        @ApiModelProperty(value = "sku id")
        private Integer skuId;

        @ApiModelProperty(value = "数量")
        private Integer qty;

    }

}